<template>
  <div class="warpc">
    <div class="top">
      <TopBarma />
    </div>
    <div class="setline"></div>
    <div class="setline1"></div>

    <div class="tcone">
      <div class="oneline">
        <van-icon name="shop-o" />
        <span>大唐不夜城</span>
      </div>
      <p class="title">簋唐楼平日看看单人票</p>
      <div class="fd">
        <div class="fdcont">
          <div>
            <van-icon name="passed" />
            <span>随时退</span>
          </div>
          <div>
            <van-icon name="passed" />
            <span>过期退</span>
          </div>
          <div>
            <van-icon name="passed" />
            <span>需预约</span>
          </div>
        </div>
        <div>半年销量748</div>
      </div>
      <div class="swipe">
        <van-swipe :loop="false" :width="145">
          <van-swipe-item>
            <img src="mayingshuang/imgs/buyecheng3.jpg" alt />
          </van-swipe-item>
          <van-swipe-item>
            <img src="mayingshuang/imgs/shier.jpg" alt />
          </van-swipe-item>
          <van-swipe-item>
            <img src="mayingshuang/imgs/huangdeng.jpg" alt />
          </van-swipe-item>
          <van-swipe-item>
            <img src="mayingshuang/imgs/buyecheng.jpg" alt />
          </van-swipe-item>
        </van-swipe>
      </div>
      <div class="specific">
        <p class="title">团购详情</p>
        <div class="page">
          <p>
            <span>双人欢游簋唐楼</span>
          </p>
          <p>
            <span>团购价</span>
            <span>￥30</span>
          </p>
        </div>
      </div>
      <div class="linebox"></div>
      <div class="buyknow">
        <p class="titlebuy">购买须知</p>
        <p class="buytitle">有效期：</p>
        <p class="buycontent">
          <span>购买后90天内有效</span>
        </p>
        <p class="buytitle">预约信息</p>
        <p class="buycontent">
          <span>请您提前1小时预约</span>
        </p>
        <p class="buytitle">规则提醒</p>
        <p class="buycontent">
          <span>不再与其他优惠同享</span>
        </p>
        <p class="buytitle">温馨提示</p>
        <p class="buycontent">
          <span>如需团购券发票，请您在消费时向商户咨询</span>
        </p>

        <div class="morecontent" ref="morecontent1">
          <p class="buycontent">
            <span>商家提供免费wiFi</span>
          </p>
          <p class="buycontent">
            <span>堂食外带均可，可免费打包</span>
          </p>
          <p class="buycontent">
            <span>团购用户不可同时享受商家其他优惠</span>
          </p>
          <p class="buycontent">
            <span>核算检验等问题，请致电商家咨询，以商家反馈为准</span>
          </p>
          <p class="buycontent">
            <span>如部分因时令或其他不可抗因素导致无法提供.</span>
          </p>
          <p class="buycontent">
            <span>使用优惠券购买团单，有效期以优惠券规则为准</span>
          </p>
          <p class="buycontent">
            <span>无需预约，消费高峰期可能需要等位 价格和销量说明</span>
          </p>
        </div>
      </div>
    </div>
    <div class="linebox"></div>
    <div class="lastcontent">
      <p class="lasttitle">适用门店</p>
      <p class="lastname">大唐不夜城</p>
      <div class="twopart">
        <div>
          <div class="laststart">
            <img class="start" src="chenkong/imgs/shopcenter/start.gif" alt />
            <img class="start" src="chenkong/imgs/shopcenter/start.gif" alt />
            <img class="start" src="chenkong/imgs/shopcenter/start.gif" alt />
            <img class="start" src="chenkong/imgs/shopcenter/start.gif" alt />
            <img class="start" src="chenkong/imgs/shopcenter/start.gif" alt />
          </div>
        </div>
        <div>
          <div class="phone">
            <van-icon name="phone-o" />
          </div>
        </div>
      </div>
      <div class="adress">
        <div>
          <van-icon name="location-o" />
          <span>大雁塔北广场游客咨询中心</span>
        </div>
        <van-icon name="arrow" />
      </div>
    </div>

    <div class="bottom"></div>
    <div class="warpcc">
      <div class="warpc-bx">
        <div class="content">
          <div class="left">
            <div>
              ￥
              <span class="price">30</span>
              <span class="gray">￥88</span>
            </div>
          </div>
          <div class="right" v-for="v in arr" :key="v.id">
            <span @click="funs(v.title, v.groupPrice)">立即抢购</span>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import axios from "axios";
import TopBar from "@/components/mayingshaung/TopBar.vue";

export default {
  components: { TopBar },

  data() {
    return {
      active: "",
      obj: [],
      arr: [
        {
          id: 12123123234,
          title: "双人欢游簋唐楼",
          groupPrice: "30"
        }
      ]
    };
  },

  created() {
    let i = this.$route.query.shopid;
    // console.log(i);
    axios.request("http://localhost:8889/shoplistCK").then(({ data }) => {
      this.obj = data[i];
    });
  },
  mounted() {
    this.$nextTick(() => {
      this.$refs.morecontent1.style.display = "none";
    });
  },
  methods: {
    fun() {
      this.$nextTick(() => {
        this.$refs.morecontent1.style.display = "block";
      });
    },
    fungo() {
      this.$router.go(-1);
    },
    funs(id, title) {
      this.$router.push({
        path: "/sshoppingcart",
        query: { id: id, title: title }
      });
    }
  }
};
</script>
<style >
.van-swipe__indicator {
  display: none;
}
.van-swipe-item {
  width: 34.4vw;
}
</style>
<style lang="scss" scoped>
.header {
  width: 100vw;
  height: 10.933vw;
  background: #fff;
  .header-content {
    width: 93.067vw;
    height: 10.933vw;
    margin: auto;
    .header-back {
      // width: 8.533vw;
      width: 35vw;
      height: 8.533vw;
      float: left;
      margin-top: 1.2vw;
      img {
        width: 8.533vw;
        height: 6.667vw;
      }
    }
    .header-icon {
      width: 34.467vw;
      height: 8.533vw;
      float: right;
      margin-top: 1.2vw;
      img {
        height: 6.667vw;
        margin-left: 4.8vw;
      }
    }
  }
}
.warpc {
  // margin-top: 5.333vw;
  width: 100%;

  ::v-deep .van-tab--active {
    color: #ee4636;
  }
  ::v-deep .van-tabs__line {
    height: 1.067vw;
    width: 22.933vw;
    border-radius: 0%;
    background: #ee4636;
  }
  .setline {
    width: 100%;
    height: 0.267vw;
    background: #f7f7f7;
  }
  .setline1 {
    width: 95%;
    margin: auto;
    height: 0.267vw;
    background: #f7f7f7;
  }
  .swipe {
    position: relative;
    // width: 90%;
    margin: auto;

    img {
      width: 37.333vw;
      height: 26.667vw;
      border: 0.267vw solid #f7f7f7;
    }
  }
  .linebox {
    width: 100%;
    height: 2.133vw;
    background: #f6f6f6;
  }
  .tcone {
    width: 95%;
    margin: auto;
    // width: 3.2vw;
    font-size: 3.2vw;
    .oneline {
      padding: 3.733vw 0;
    }
    .title {
      font-size: 4.267vw;
      font-weight: bold;
    }
    .fd {
      display: flex;
      justify-content: space-between;
      padding: 1.867vw 0;
      .fdcont {
        display: flex;
        span {
          padding: 0 1.333vw;
        }
      }
    }
    .coloror {
      color: #ee4636;
      padding-bottom: 3.733vw;
    }
  }
  .specific {
    padding-bottom: 4vw;
    .title {
      font-size: 4.267vw;
      font-weight: bold;
      padding: 3.733vw 0;
    }
    .page {
      display: flex;
      justify-content: space-between;
      .tj {
        font-size: 2.667vw;
        color: #ee4636;
        padding: 0.267vw;
        border: 0.267vw solid #ee4636;
        margin-left: 2.667vw;
        line-height: 5.867vw;
      }
    }
  }
  .buyknow {
    .titlebuy {
      font-size: 4.267vw;
      font-weight: bold;
      line-height: 8.533vw;
    }
    .buytitle {
      color: #d8d8d8;
    }
    .buycontent {
      padding: 0.8vw 0 1.333vw 0.8vw;
    }
    .more {
      border-top: 0.267vw solid #d8d8d8;
      height: 12.8vw;
      text-align: center;
      line-height: 12.8vw;
      color: #d8d8d8;
    }
  }
  .lastcontent {
    width: 95%;
    margin: auto;
    .lasttitle {
      font-size: 4.267vw;
      font-weight: bold;
      line-height: 8.533vw;
    }
    .lastname {
      font-size: 3.733vw;
      font-weight: bold;
      // line-height: 8.533vw;
    }
    .twopart {
      display: flex;
      justify-content: space-between;
      padding-bottom: 3.2vw;
      border-bottom: 0.267vw solid #d8d8d8;
      .phone {
        width: 17.333vw;
        border-left: 0.267vw solid #d8d8d8;
        text-align: center;
        color: #ee4636;
      }
    }
    .adress {
      display: flex;
      justify-content: space-between;
      font-size: 3.733vw;
      padding: 3.733vw 0;
    }
    .laststart {
      padding: 2.667vw 0;
      img {
        width: 3.2vw;
      }
    }
  }
  .bottom {
    height: 14.4vw;
  }
}

.warpcc {
  position: fixed;
  bottom: 0;
  background: #fff;
  width: 100%;
  border-top: 0.267vw solid #d8d8d8;
  .warpc-bx {
    width: 95%;
    margin: auto;

    .content {
      display: flex;
      justify-content: space-between;
      height: 14.4vw;
      line-height: 14.4vw;
      font-size: 2.667vw;

      .left {
        color: #ed7044;
        .price {
          font-size: 6.267vw;
          font-weight: bold;
        }
        .gray {
          color: gray;
          text-decoration: line-through;
        }
      }
      .right {
        margin-top: 2vw;
        width: 38.4vw;
        height: 10.133vw;
        background: #ed7044;
        text-align: center;
        line-height: 10.133vw;
        color: #fff;
        border-radius: 999rem;
      }
    }
  }
}
</style>